package org.noote.libs.computervision;

import org.noote.libs.computervision.buffer.Buffer8888XRGB;

public class Emboss extends Intensity
{
	public boolean do3x3(Buffer8888XRGB xrgb)
	{
		return do3x3(xrgb, 128.0f);
	}
	
	public boolean do3x3(Buffer8888XRGB xrgb, float factor)
	{
		final float fEmbrossKernel3x3[]=
			{
				-1,  0, 1,
				-1,  0, 1,
				-1,  0, 1
			};
		
		calculIntensityFrom(xrgb);
		applyKernel3x3(fEmbrossKernel3x3, 1.0f, factor);
		
		return true;
	}	
}
